package phone;

public class phone {
    private String brand;
    private String model;
    private String operatingSystem;
    private int price;
    private String RAM;

    private String function;
    private String game;
    private String musuic;

    public phone(String brand, String model, String operatingSystem, int price, String RAM, String function, String game, String musuic) {
        this.brand = brand;
        this.model = model;
        this.operatingSystem = operatingSystem;
        this.price = price;
        this.RAM = RAM;
        this.function = function;
        this.game = game;
        this.musuic = musuic;
    }


    public String displayINfo(){
        return "手机品牌：" + brand + "\n" +
                "型号：" + model + "\n" +
                "操作系统" + operatingSystem + "\n" +
                "商品价格：" + price + "元" + "\n" +
                "内存：" + RAM + "\n" +
                "\n" +
                "使用自动拨号功能：" + "\n" +
                function + "\n" +
                "玩" + game + "游戏" + "\n" +
                "播放歌曲：" + musuic;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getRAM() {
        return RAM;
    }

    public void setRAM(String RAM) {
        this.RAM = RAM;
    }

    public String getFunction() {
        return function;
    }

    public void setFunction(String function) {
        this.function = function;
    }

    public String getGame() {
        return game;
    }

    public void setGame(String game) {
        this.game = game;
    }

    public String getMusuic() {
        return musuic;
    }

    public void setMusuic(String musuic) {
        this.musuic = musuic;
    }
}
